/*
 * XML Type:  OtherEnroll
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.OtherEnroll
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML OtherEnroll(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class OtherEnrollImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.OtherEnroll
{
    
    public OtherEnrollImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MESSAGE$0 = 
        new javax.xml.namespace.QName("", "MESSAGE");
    
    
    /**
     * Gets the "MESSAGE" element
     */
    public java.lang.String getMESSAGE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MESSAGE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MESSAGE" element
     */
    public net.ofx.types.x2003.x04.MessageType xgetMESSAGE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(MESSAGE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "MESSAGE" element
     */
    public void setMESSAGE(java.lang.String message)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MESSAGE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MESSAGE$0);
            }
            target.setStringValue(message);
        }
    }
    
    /**
     * Sets (as xml) the "MESSAGE" element
     */
    public void xsetMESSAGE(net.ofx.types.x2003.x04.MessageType message)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(MESSAGE$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.MessageType)get_store().add_element_user(MESSAGE$0);
            }
            target.set(message);
        }
    }
}
